package com.yunsc.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yunsc.common.utils.PageUtils;
import com.yunsc.common.utils.Query;
import com.yunsc.dao.YunscGoodsServiceRelDao;
import com.yunsc.module.entity.YunscGoodsServiceRelEntity;
import com.yunsc.service.YunscGoodsServiceRelService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("yunscGoodsServiceRelService")
public class YunscGoodsServiceRelServiceImpl extends ServiceImpl<YunscGoodsServiceRelDao, YunscGoodsServiceRelEntity> implements YunscGoodsServiceRelService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YunscGoodsServiceRelEntity> page = this.page(
                new Query<YunscGoodsServiceRelEntity>().getPage(params),
                new QueryWrapper<YunscGoodsServiceRelEntity>()
        );

        return new PageUtils(page);
    }

}